package com.kykj.kykjyzw.dao;

import com.kykj.kykjyzw.entity.UserRouteEntity;
import com.kykj.kykjyzw.vo.RouteVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RouteDao {
    int addRoute(@Param("routeVo") RouteVo roureVo);//添加路由
    int updateRoute(@Param("routeVo") RouteVo roureVo);//修改路由
    int delRoute(@Param("menuid") int menuid);//删除路由
    UserRouteEntity getRouteByMenuId(@Param("menuid") int menuid);//根据ID获取路由
    List<UserRouteEntity> getRouteList(
            @Param("name") String name,@Param("controller") String controller,
            @Param("start") int start,@Param("limit") int limit
    );//分页查询
    int getRouteCount();//获取路由总数
}
